<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>css_表格</title>
    <style>
        table,th,td
        {
            border: 1px solid black;
            border-collapse: collapse;
        }
        #members
        {
            border-collapse: collapse;
            font-size: 14px;
            padding: 5px 3px 5px 2px ;
        }
        #members th
        {
            border: 5px solid black;
            background-color: #0b93d5;
            font-size: 18px;
            font-weight: bold;
            text-align: center;
        }
        #members td
        {
            text-align: center;
        }
        #members td.alt
        {
            text-align: center;
            background-color: #00B0E8;
        }
    </style>
</head>
<body>
<table id="members">
    <tr>
        <th>name</th>
        <th>phone</th>
    </tr>
    <tr>
        <td>youjiahe</td>
        <td>13676240551</td>
    </tr>
    <tr>
        <td class="alt">wenwanying</td>
        <td class="alt">18819272837</td>
    </tr>

</table>
</body>
</html>